package com.example.feng.demo;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

import com.example.feng.testcsdn.R;
import com.example.feng.utils.CameraController;

public class ActivityDemo2 extends Activity {
    private final String TAG = "ActivityDemo2";

    private GLSurfaceView mGlSurfaceView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo2);
        setTitle("Demo2");

        initView();
    }


    private void initView(){
        try {
            mGlSurfaceView = (GLSurfaceView) findViewById(R.id.glSurfaceView);

            CameraController.getInstance().openCamera(mGlSurfaceView);
        }catch (Exception e){
            e.printStackTrace();
        }

    }


}
